QT       += core gui serialport network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
DESTDIR = $$PWD/bin
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    HttpRequest.cpp \
    dialog_camadjust.cpp \
    dialog_codescanstart.cpp \
    dialog_configsystermparas.cpp \
    dialog_configworkgroupparas.cpp \
    dialog_inputcode.cpp \
    dialog_lightcontrol.cpp \
    dialog_login.cpp \
    dialog_newaddgroup.cpp \
    dialog_selectworkgroup.cpp \
    inimanager.cpp \
    main.cpp \
    messageboxutil.cpp \
    modbusserialtest.cpp \
    serialporthandler.cpp \
    widget.cpp

HEADERS += \
    HttpRequest.h \
    MyJson.h \
    dialog_camadjust.h \
    dialog_codescanstart.h \
    dialog_configsystermparas.h \
    dialog_configworkgroupparas.h \
    dialog_inputcode.h \
    dialog_lightcontrol.h \
    dialog_login.h \
    dialog_newaddgroup.h \
    dialog_selectworkgroup.h \
    inimanager.h \
    messageboxutil.h \
    modbusserialtest.h \
    serialporthandler.h \
    widget.h

FORMS += \
    dialog_camadjust.ui \
    dialog_codescanstart.ui \
    dialog_configsystermparas.ui \
    dialog_configworkgroupparas.ui \
    dialog_inputcode.ui \
    dialog_lightcontrol.ui \
    dialog_login.ui \
    dialog_newaddgroup.ui \
    dialog_selectworkgroup.ui \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc
